import httplib2

from dajaxice.core import dajaxice_functions

#from core.ajax.ajax_links import check_link
from django.utils import simplejson

def check_link(request, link = ''):
    client =  httplib2.Http()

    r = client.request(uri = link, method = 'HEAD')

    return simplejson.dumps({'data': r, 'test': 'test' })

dajaxice_functions.register(check_link)
